package com.resume.entity

import com.baomidou.mybatisplus.annotation.*
import java.time.LocalDateTime

@TableName("users")
data class User(
    @TableId(type = IdType.AUTO)
    val id: Long? = null,
    
    val username: String,
    val email: String,
    val password: String,
    val nickname: String? = null,
    val avatar: String? = null,
    val phone: String? = null,
    val status: Int = 1,
    
    @TableField(fill = FieldFill.INSERT)
    val createdTime: LocalDateTime? = null,
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    val updatedTime: LocalDateTime? = null,
    
    @TableLogic
    val deleted: Int = 0
) 